package com.lu.banktrade.quque;


import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

import javax.annotation.Resource;

/**
 * 日志记录
 * @author L
 */
@Component
public class LogQueue {
    private static final String QUEUENAME = "log.add";
    @Resource
    private RabbitTemplate rabbitTemplate;

    public void addLog(String logMsg){
        rabbitTemplate.convertAndSend(QUEUENAME,logMsg);
    }
}
